home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / esc.jar / com / extensibility / rock / ReaderEditorPane.class (.txt) < prev    next >
Encoding:
Java Class File  |  2000-06-30  |  506 b   |  15 lines

  1. package com.extensibility.rock;
  2.  
  3. import java.io.IOException;
  4. import java.io.Reader;
  5. import java.net.URL;
  6. import javax.swing.JEditorPane;
  7. import javax.swing.text.JTextComponent;
  8.  
  9. public class ReaderEditorPane extends JEditorPane {
  10.    public ReaderEditorPane(Reader var1, String var2, URL var3) throws IOException {
  11.       ((JEditorPane)this).setContentType(var2);
  12.       ((JTextComponent)this).read(var1, var3);
  13.    }
  14. }
  15.